package com.mysoft.gfyx.common.rpc.mpapi;

import com.mysoft.gfyx.common.rpc.mpapi.dto.CheckYcgMemberResponseDto;
import com.mysoft.gfyx.common.rpc.mpapi.dto.ClueToCrmRequestDto;
import com.mysoft.gfyx.common.rpc.mpapi.dto.SyncTenantProfitRequestDto;
import com.mysoft.gfyx.common.rpc.mpapi.dto.SyncTenantProfitResponseDto;
import feign.Headers;
import feign.Param;
import feign.RequestLine;

public interface MpapiClientService {

    @RequestLine("POST /api/v1/sync/all-tenant-profit")
    @Headers("Content-Type: application/json")
    SyncTenantProfitResponseDto syncTenantProfit(SyncTenantProfitRequestDto dto) throws Exception;

    @RequestLine("GET /api/v1/anonymity/check-ycg-member?company_name={company_name}")
    @Headers("Content-Type: application/json")
    CheckYcgMemberResponseDto checkYcgMemberRequest(@Param("company_name") String companyName) throws Exception;

    @RequestLine("POST /api/v1/gfyx-java/clue-to-crm")
    @Headers("Content-Type: application/json")
    void ClueToCrm(ClueToCrmRequestDto dto);
}
